<select name="met_are_id2" <?=$estilo;?>>
    
    <option value="">&Aacute;rea de Atua&ccedil;&atilde;o</option>

    <?php
	
    $sql_met_are_id = "SELECT * FROM meteoroarea WHERE status='1' ORDER BY met_are_nome";
    $res_met_are_id = sql($sql_met_are_id);

    while($linha_met_are_id = mysql_fetch_array($res_met_are_id)){
        
        if ($linha_met_are_id['met_are_id2'] > 0){
            $sql_met_are_id2 = "SELECT met_are_nome FROM meteoroarea WHERE met_are_id='{$linha_met_are_id['met_are_id2']}'";
            $res_met_are_id2 = sql($sql_met_are_id2);
            $linha_met_are_id2 = mysql_fetch_array($res_met_are_id2);
            $met_pai = "&nbsp;&nbsp;( {$linha_met_are_id2['met_are_nome']} )";
        } else {
            $met_pai = "";
        }
    ?>

    <option value="<?=$linha_met_are_id['met_are_id'];?>" <?php if($linha_met_are_id['met_are_id'] == $met_are_id2) { echo "selected"; } ?>><?=$linha_met_are_id['met_are_nome'].$met_pai;?></option>

    <?php } ?>

</select>